package com.ruoyi.openapiadmin.feign;

import com.qf.qfsy.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.HashMap;

@FeignClient("openapi-cache")
public interface CacheFeignClient {


    @RequestMapping("/cache/sadd/{key}/{value}")
    public R sadd(@PathVariable("key") String key,@PathVariable("value") String value);

    @RequestMapping("/cache/hmset/{key}")
    public R hmset(@PathVariable("key") String key, @RequestBody Object value);


    @GetMapping("/cache/set/{key}/{value}")
    public R set(@PathVariable("key") String key,@PathVariable("value") String value);
}
